﻿using System;
using FreeSql.DataAnnotations;

namespace QuDao
{
	/// <summary>
    /// base_user: base_用户
    /// </summary>
	[Table(Name ="base_user")]
	public partial class User
	{
		/// <summary>
        /// 用户ID：用户唯一标识
        /// </summary>
		[Column(IsPrimary =true, IsIdentity =false)]
		public long UserID { get; set; }
		
		/// <summary>
        /// 租户ID
        /// </summary>
		public int TID { get; set; }
		
		/// <summary>
        /// 用户类型：分ABC三级
        /// </summary>
		public string UserType { get; set; }
		
		/// <summary>
        /// 管理角色：9-管理员，1-财务，2-仓库
        /// </summary>
		public int Role { get; set; }
		
		/// <summary>
        /// 推荐人ID
        /// </summary>
		public long RecoID { get; set; }
		
		/// <summary>
        /// 推荐人姓名
        /// </summary>
		public string RecoName { get; set; }

        /// <summary>
        /// 推荐人ID2
        /// </summary>
        public long RecoID2 { get; set; }

        /// <summary>
        /// 推荐人姓名2
        /// </summary>
        public string RecoName2 { get; set; }

        /// <summary>
        /// 登录账号：默认用手机号登录
        /// </summary>
        public string Mobile { get; set; }
		
		/// <summary>
        /// 用户姓名
        /// </summary>
		public string TrueName { get; set; }
		
		/// <summary>
        /// 客户名称：门店名称或公司名称
        /// </summary>
		public string CustomerName { get; set; }
		
		/// <summary>
        /// 头像
        /// </summary>
		public string AvatarUrl { get; set; }
		
		/// <summary>
        /// 性别
        /// </summary>
		public string Sex { get; set; }
		
		/// <summary>
        /// 是否代理
        /// </summary>
		public bool IsAgent { get; set; }
		
		/// <summary>
        /// 代理区域ID
        /// </summary>
		public int AgentAreaID { get; set; }
		
		/// <summary>
        /// 省份ID
        /// </summary>
		public int ProvinceID { get; set; }
		
		/// <summary>
        /// 省份名称
        /// </summary>
		public string ProvinceName { get; set; }
		
		/// <summary>
        /// 城市ID
        /// </summary>
		public int CityID { get; set; }
		
		/// <summary>
        /// 城市名称
        /// </summary>
		public string CityName { get; set; }
		
		/// <summary>
        /// 区县ID
        /// </summary>
		public int CountyID { get; set; }
		
		/// <summary>
        /// 区县名称
        /// </summary>
		public string CountyName { get; set; }
		
		/// <summary>
        /// 收货人电话
        /// </summary>
		public string ReceiverPhone { get; set; }
		
		/// <summary>
        /// 收货人姓名
        /// </summary>
		public string ReceiverName { get; set; }
		
		/// <summary>
        /// 收货地址
        /// </summary>
		public string ReceiveAddress { get; set; }
		
		/// <summary>
        /// 账户余额
        /// </summary>
		public decimal Balance { get; set; }
		
		/// <summary>
        /// 结算银行
        /// </summary>
		public string ClearingBank { get; set; }

		/// <summary>
		/// 开户名称：开户人姓名或开户单位名称
		/// </summary>
        public string BankAccountName { get; set; }

        /// <summary>
        /// 银行卡号
        /// </summary>
        public string BankCardNo { get; set; }
		
		/// <summary>
        /// 累计奖金
        /// </summary>
		public decimal TotalBonus { get; set; }
		
		/// <summary>
        /// 推荐人数
        /// </summary>
		public int RecommendTotal { get; set; }
		
		/// <summary>
        /// 登录次数
        /// </summary>
		public int LoginCount { get; set; }
		
		/// <summary>
        /// 状态：-1-已删除，0-待审核，1-正常
        /// </summary>
		public int Status { get; set; }
		
		/// <summary>
        /// 上次登录时间
        /// </summary>
		public DateTime LastLoginTime { get; set; }
		
		/// <summary>
        /// 注册时间
        /// </summary>
		public DateTime RegTime { get; set; }
		
		/// <summary>
        /// 修改时间
        /// </summary>
		public DateTime ModifyTime { get; set; }

        /// <summary>
        /// 接口访问令牌
        /// </summary>
        public string AccessToken { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Memo { get; set; }
		
				
	}
}